package com.sixtwo.security.controller;

import com.sixtwo.security.entity.Authorities;
import com.sixtwo.security.service.AuthoritiesService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Authorities)表控制层
 *
 * @author zhengsh
 * @since 2021-07-01 01:44:07
 */
@RestController
@RequestMapping("authorities")
public class AuthoritiesController {
    /**
     * 服务对象
     */
    @Resource
    private AuthoritiesService authoritiesService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Authorities selectOne(Long id) {
        return this.authoritiesService.queryById(id);
    }

}
